{template 'common/header'}
{template 'nav'}
<div class="main panel panel-default" id="table-list">
	<div class="sub-title panel-heading">中奖名单</div>
	<div class="panel-body">
	<form action="" method="post" onsubmit="">
	<div class="sub-content table-responsive">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
					<th class="row-hover" style="width:5em;">选择</th>
					<th class="row-hover" style="width:5em;">中奖用户</th>
					<th class="row-hover" style="width:8em;">电话号码</th>
					<th class="row-hover" style="width:5em;">奖项</th>
					<th class="row-hover" style="width:10em;">奖品名称</th>
					<th class="row-hover" style="width:10em;">中奖时间</th>
					<th class="row-hover" style="width:8em;">是否领奖</th>
					
				</tr>
			</thead>
			<tbody>
				{loop $list $row}
				<tr>
					<td class="row-first"><input type="checkbox" name="select[]" value="{$row['id']}" /></td>
					<td class="row-hover"><img src="{$row['avatar']}" height=40px width=40px /><br/>{$row['nick_name']}</td>
					<td class="row-hover">{$row['mobile']}</td>
					<td class="row-hover">{$row['tag_name']}</td>
					<td class="row-hover">{$row['luck_name']}</td>
					<td style="font-size:12px; color:#666;">
						{php echo date('Y-m-d H:i:s', $row['createtime']);}
					</td>
					<td style="font-size:12px; color:#666;">
						{php echo empty($row['is_receive'])?"<span style='color:red'>否</span>" : "<span style='color:green'>是</span>"}
					</td>
				</tr>
				{/loop}
			</tbody>
			<tr>
					<td><input type="checkbox" onclick="var ck = this.checked;$(':checkbox').each(function(){this.checked = ck});"></td>
                    <td colspan="12">
                        <input type="submit" class="btn btn-pramary" name="downall" value="打印中奖名单" />
                        <input type="hidden" name="award_id" value="{$award_id}">
						<input type="hidden" name="token" value="{$_W['token']}">
                    </td>
				</tr>
		</table>
		
	</div>
	</form>
	</div>
	{$pager}
</div>
{template 'common/footer'}
